 /**
 * 子模块路由
 * djp
 */

var router = function($urlRouterProvider, $stateProvider){

     $stateProvider
     
    //待办事项
    .state('app.waiteventlist', {
        url: "/tourismexamine/waiteventlist",
        views: {
            'main@' : {
                template : require('./views/examinerecordinfo.html'),
                controller : 'waiteventlist',
            }
        },
        resolve:{
            
        }
    })

    //已办事项
    .state('app.adopteventlist', {
        url: "/tourismexamine/adopteventlist",
        views: {
            'main@' : {
                template : require('./views/examinerecordinfo.html'),
                controller : 'adopteventlist',
            }
        },
        resolve:{
            
        }
    })

    //完善企业信息
    .state('app.enterpriseinfo', {
        url: "/tourismexamine/enterpriseinfo",
        views: {
            'main@' : {
                template : require('./views/enterpriseinfo.html'),
                controller : 'enterpriseinfo',
            }
        },
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //在线备案申请
    .state('app.enterpriseapply', {
        url: "/tourismexamine/enterpriseapply",
        views: {
            'main@' : {
                template : require('./views/enterpriseapply.html'),
                controller : 'enterpriseapply',
            }
        },
        resolve:{
            
        }
    })

    //弹出审核记录
    .state('app.applyrecord', {
        url: "/tourismexamine/applyrecord",
        size: 'lg',
        template : require('./views/applyrecord.html'),
        controller : 'applyrecord',
        resolve:{

        }
    })

    //审核备案信息
    .state('app.examinerecordinfo', {
        url: "/tourismexamine/examinerecordinfo",
        views: {
            'main@' : {
                template : require('./views/examinerecordinfo.html'),
                controller : 'examinerecordinfo',
            }
        },
        resolve:{
            
        }
    })

    //弹出企业详情
    .state('app.enterpriseapplyinfo', {
        url: "/tourismexamine/enterpriseapplyinfo",
        size: 'lg',
        template : require('./views/enterpriseapplyinfo.html'),
        controller : 'enterpriseapplyinfo',
        resolve:{

        }
    })

    //弹出审核页面
    .state('app.auditenterprise', {
        url: "/tourismexamine/auditenterprise",
        size: 'xs',
        template : require('./views/auditenterprise.html'),
        controller : 'auditenterprise',
        resolve:{

        }
    })

    //采集信息
    .state('app.collectionlist', {
        url: "/tourismexamine/collectionlist",
        views: {
            'main@' : {
                template : require('./views/collectionlist.html'),
                controller : 'collectionlist',
            }
        },
        resolve:{
            
        }
    })

    //弹出编辑采集信息
    .state('app.collectioninfo', {
        url: "/tourismexamine/collectioninfo",
        size: 'lg',
        template : require('./views/collectioninfo.html'),
        controller : 'collectioninfo',
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //弹出导入采集信息
    .state('app.updatecollection', {
        url: "/tourismexamine/updatecollection",
        size: 'lg',
        template : require('./views/updatecollection.html'),
        controller : 'updatecollection',
        resolve:{
            
        }
    })

    //已通过审核信息
    .state('app.adoptexaminelist', {
        url: "/tourismexamine/adoptexaminelist",
        views: {
            'main@' : {
                template : require('./views/adoptexaminelist.html'),
                controller : 'adoptexaminelist',
            }
        },
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //已公示备案信息
    .state('app.publicityenterpriselist', {
        url: "/tourismexamine/publicityenterpriselist",
        views: {
            'main@' : {
                template : require('./views/publicityenterpriselist.html'),
                controller : 'publicityenterpriselist',
            }
        },
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //备案信息列表
    .state('app.qyrecordlist', {
        url: "/tourismexamine/qyrecordlist",
        views: {
            'main@' : {
                template : require('./views/qyrecordlist.html'),
                controller : 'qyrecordlist',
            }
        },
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //弹出设置公示信息
    .state('app.adoptsetupinfo', {
        url: "/tourismexamine/adoptsetupinfo",
        size: 'xs',
        template : require('./views/adoptsetupinfo.html'),
        controller : 'adoptsetupinfo',
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //信息分类管理
    .state('app.infotypelist', {
        url: "/tourismexamine/infotypelist",
        views: {
            'main@' : {
                template : require('./views/infotypelist.html'),
                controller : 'infotypelist',
            }
        },
        resolve:{
            
        }
    })

    //弹出创建分类
    .state('app.createinfotype', {
        url: "/tourismexamine/createinfotype",
        size: 'xs',
        template : require('./views/createinfotype.html'),
        controller : 'createinfotype',
        resolve:{

        }
    })

    //信息登记管理
    .state('app.inforegister', {
        url: "/tourismexamine/inforegister",
        views: {
            'main@' : {
                template : require('./views/inforegister.html'),
                controller : 'inforegister',
            }
        },
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //信息维护管理
    .state('app.infomaintainlist', {
        url: "/tourismexamine/infomaintainlist",
        views: {
            'main@' : {
                template : require('./views/infomaintainlist.html'),
                controller : 'infomaintainlist',
            }
        },
        resolve:{
            
        }
    })

    //弹出创建信息
    .state('app.createinforegister', {
        url: "/tourismexamine/createinforegister",
        size: 'lg',
        template : require('./views/createinforegister.html'),
        controller : 'createinforegister',
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //发布信息审核
    .state('app.infoexaminelist', {
        url: "/tourismexamine/infoexaminelist",
        views: {
            'main@' : {
                template : require('./views/infoexaminelist.html'),
                controller : 'infoexaminelist',
            }
        },
        resolve:{
            
        }
    })

    //弹出审核信息页面
    .state('app.auditinfo', {
        url: "/tourismexamine/auditinfo",
        size: 'xs',
        template : require('./views/auditinfo.html'),
        controller : 'auditinfo',
        resolve:{

        }
    })

    //定时发送管理
    .state('app.timingsendlist', {
        url: "/tourismexamine/timingsendlist",
        views: {
            'main@' : {
                template : require('./views/timingsendlist.html'),
                controller : 'timingsendlist',
            }
        },
        resolve:{
            
        }
    })

    //弹出设置
    .state('app.createtimingsend', {
        url: "/tourismexamine/createtimingsend",
        size: 'xs',
        template : require('./views/createtimingsend.html'),
        controller : 'createtimingsend',
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //已发布信息列表
    .state('app.realeaseinfolist', {
        url: "/tourismexamine/realeaseinfolist",
        views: {
            'main@' : {
                template : require('./views/realeaseinfolist.html'),
                controller : 'realeaseinfolist',
            }
        },
        resolve:{
            
        }
    })

    //弹出信息内容
    .state('app.informationinfo', {
        url: "/tourismexamine/informationinfo",
        size: 'xs',
        template : require('./views/informationinfo.html'),
        controller : 'informationinfo',
        resolve:{
            
        }
    })

    //弹出留言信息页面
    .state('app.replyinfo', {
        url: "/tourismexamine/replyinfo",
        size: 'xs',
        template : require('./views/replyinfo.html'),
        controller : 'replyinfo',
        resolve:{

        }
    })

    //弹出公开留言页面
    .state('app.openmessage', {
        url: "/tourismexamine/openmessage",
        size: 'xs',
        template : require('./views/openmessage.html'),
        controller : 'openmessage',
        resolve:{

        }
    })

    //阅读量统计
    .state('app.readstatisticslist', {
        url: "/tourismexamine/readstatisticslist",
        views: {
            'main@' : {
                template : require('./views/readstatisticslist.html'),
                controller : 'readstatisticslist',
            }
        },
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //阅读量详情
    .state('app.readstatisticsinfo', {
        url: "/tourismexamine/readstatisticsinfo",
        size: 'xs',
        template : require('./views/readstatisticsinfo.html'),
        controller : 'readstatisticsinfo',
        resolve:{

        }
    })

    //留言管理
    .state('app.messageadminlist', {
        url: "/tourismexamine/messageadminlist",
        views: {
            'main@' : {
                template : require('./views/messageadminlist.html'),
                controller : 'messageadminlist',
            }
        },
        resolve:{
            
        }
    })

    //弹出留言回复页面
    .state('app.answerinfo', {
        url: "/tourismexamine/answerinfo",
        size: 'xs',
        template : require('./views/answerinfo.html'),
        controller : 'answerinfo',
        resolve:{

        }
    })

    //问题分类管理
    .state('app.problemtypelist', {
        url: "/tourismexamine/problemtypelist",
        views: {
            'main@' : {
                template : require('./views/problemtypelist.html'),
                controller : 'problemtypelist',
            }
        },
        resolve:{
            
        }
    })

    //弹出创建问题类别
    .state('app.createproblemtype', {
        url: "/tourismexamine/createproblemtype",
        size: 'xs',
        template : require('./views/createproblemtype.html'),
        controller : 'createproblemtype',
        resolve:{

        }
    })

    //问题管理
    .state('app.problemlist', {
        url: "/tourismexamine/problemlist",
        views: {
            'main@' : {
                template : require('./views/problemlist.html'),
                controller : 'problemlist',
            }
        },
        resolve:{
            
        }
    })

    //弹出创建问题
    .state('app.createproblem', {
        url: "/tourismexamine/createproblem",
        size: 'xs',
        template : require('./views/createproblem.html'),
        controller : 'createproblem',
        resolve:{
            date2str: function (utilservice) {
                return utilservice.getDate;
            }
        }
    })

    //回复管理
    .state('app.replylist', {
        url: "/tourismexamine/replylist",
        views: {
            'main@' : {
                template : require('./views/replylist.html'),
                controller : 'replylist',
            }
        },
        resolve:{
            
        }
    })

    //弹出应答页面
    .state('app.answerinfo1', {
        url: "/tourismexamine/answerinfo1",
        size: 'xs',
        template : require('./views/answerinfo1.html'),
        controller : 'answerinfo1',
        resolve:{

        }
    })

    //可见范围管理
    .state('app.sorangelist', {
        url: "/tourismexamine/sorangelist",
        views: {
            'main@' : {
                template : require('./views/sorangelist.html'),
                controller : 'sorangelist',
            }
        },
        resolve:{
            
        }
    })

    //公开问题
    .state('app.publicproblemlist', {
        url: "/tourismexamine/publicproblemlist",
        views: {
            'main@' : {
                template : require('./views/publicproblemlist.html'),
                controller : 'publicproblemlist',
            }
        },
        resolve:{
            
        }
    })
    

};

module.exports = router;